package com.lagou.Test;

import com.lagou.Client.ClientDao;
import com.lagou.Client.ClientInitClose;
import com.lagou.Client.ClientScanner;
import com.lagou.Client.ClientView;

import java.io.IOException;

public class ClientTest {
    public static void main(String[] args) {
        ClientInitClose cic= null;
        ClientView cv=null;
        try {
            cic = new ClientInitClose();
            cic.ClientInit();
            ClientDao cd=new ClientDao();
            cv=new ClientView(cic,cd);
            cv.clientMainPage();
        } catch (IOException | ClassNotFoundException e) {
            e.printStackTrace();
        } finally {
            try {
                cic.ClientClose();
                ClientScanner.closeScanner();
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
    }
}
